package com.qfxl.common.comm;

/**
 * @Title: TreeData
 * @Author cj
 * @Package com.qfxl.common.comm
 * @Date 2025/6/10 9:20
 * @description: 树形数据处理
 */

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @description: TODO
 * @author cj
 * @date 2025/6/10 9:20
 * @version 1.0
 */
public class TreeData {
    public static void main(String[] args) {
        Map<String,Object> treeMap = new HashMap<>();
        List<Map<String,Object>> data  = new ArrayList<>();
        for (Map<String, Object> datum : data) {
            String id = String.valueOf(datum.get("id"));
            Object parentId = datum.get("parent_id");
            Object object = treeMap.get(id);

        }
    }
}
